﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EzDesk.Core.CoreImpl.Services.AppPortal;
using EzDesk.Core.Model;

namespace EzDesk.Core.ServiceWebRef
{
    public class AppPortalWebRef : IAppPortalService
    {
        private IAppPortalService _service = new AppPortalService();

        public Model.App GetAppByName(string appName)
        {
            return _service.GetAppByName(appName);
        }

        public Guid GetUserIdByToken(string tokenString)
        {
            return _service.GetUserIdByToken(tokenString);
        }

        public string GetAppDomainName(string appName, string userAgent)
        {
            return _service.GetAppDomainName(appName, userAgent);
        }

        public HttpContent GetPortalRequests(string httpMethod, string targetUrl, string appName, Guid currentUserId, IList<KeyValuePair<string, string>> formParameters = null)
        {
            return _service.GetPortalRequests(httpMethod, targetUrl, appName, currentUserId, formParameters);
        }



    }
}
